package com.corticon.dialogs.dao;

import java.util.List;

import com.corticon.dialogs.model.QuestionSet;
import com.corticon.dialogs.model.UserGroup;
import com.corticon.dialogs.util.Pager;

public interface QuestionSetDAO extends GenericDAO<QuestionSet, Long> {

    List<QuestionSet> findByQuestion(String id, Pager pager);

    String getMaxRefId();

    QuestionSet findByRefIdAndVersion(String refId, long version);

    long getMaxVersionByRefId(String refId);

    List<QuestionSet> getPageOfDataByGroup(UserGroup group, Pager pager);

    long getCountByGroup(UserGroup group);

    List<QuestionSet> findBySibling(QuestionSet questionSet);

    List<QuestionSet> search(String keywords, String availability, String status, String username,
        String groupName, Pager pager);
}